package com.zg.scf.domain.req.rule;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zg.common.core.req.AddReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * DESCRIPTION
 *
 * @author zhanfeng.liang
 * @since 2025-07-14
 */

@Data
@ApiModel(value = "企业规则AddRe")
public class RuleAddReq extends AddReq {

    @ApiModelProperty
    @NotNull(message="企业不能为空")
    private Long companyId;

    @ApiModelProperty
    @NotEmpty(message="说明不能为空")
    private String describe;

    @ApiModelProperty
    @NotNull(message="开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date beginTime;

    @ApiModelProperty
    @NotNull(message="结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;


    private String  state;

    @ApiModelProperty
    //@NotNull(message="方向不能为空")
    private String direction;
}
